package com.qf.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qf.pojo.DtsStorage;

/**
 * @author 千峰教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
public interface DtsStorageService {

    IPage<DtsStorage> queryPage(Integer page, Integer limit, String key, String name, String sort, String order);

    DtsStorage insert(String ext, Integer size, byte[] content) throws Exception;

//    void update(DtsStorage storage);

    DtsStorage findStorage(String url);

    void deleteById(DtsStorage storage);

    int update(DtsStorage storage);

    int delete(DtsStorage storage);

    void deleteUrl(String fileName);
}
